import { ref } from "vue";
import { defineStore } from "pinia";

export const useMenuStore = defineStore("menu", () => {
  const menu = ref({
    value: [],
    getv: () => {
      return menu.value.value;
    },
    setv: (val: any) => {
      menu.value.value = val;
    },
  });

  const role = ref({
    value: [],
    getv: () => {
      return role.value.value;
    },
    setv: (val: any) => {
      role.value.value = val;
    },
  });
  return { menu, role };
});
